﻿using Domain.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Domain.IRepositories
{
    public interface IProductRepository : IRepository<Product>
    {
        Product GetById(Int32 id);

        IQueryable<Product> GetAll(string key);

        IQueryable<Product> GetPageList(string SearchKeyWords, int PageSize, int PageCurrent, string OrderField, bool OrderDirection = true);
        bool AddOrUpdate(Product model);

        bool DeleteById(int id);
    }
}
